| Class | BeheerController |
| In: |
app/controllers/beheer_controller.rb
|
| Parent: | ApplicationController |
# File app/controllers/beheer_controller.rb, line 21
21: def index
22: @aantal_orders = Order.count
23: end
# File app/controllers/beheer_controller.rb, line 3
3: def login
4: session[:inlog_ok] = false
5: if request.post?
6: if params[:naam] == 'Super_user_ITMEDIA' && params[:paswoord] == 'BBB479+' then
7: session[:inlog_ok] = true
8: redirect_to :action => "index"
9: else
10: flash[:melding] = "Inloggegevens zijn foutief!"
11: end
12: end
13: end